<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link type="text/css" rel="stylesheet" href="/res/front/css/sytle/user-css/user_message.css" />
<title>${title}</title>
<#include "/front/head.html"/>

<script type="text/javascript"> 
	function getTableForm() {
		return document.getElementById('jvForm');
	}
	function optDelete() {
		if(Pn.checkedCount('ids')<=0) {
			alert("请选择您要操作的数据");
			return;
		}
		if(!confirm("您确定删除吗？")) {
			return;
		}
		var f = getTableForm();
		f.action="o_trechargeDelete.do";
		f.submit();
	}
	
	
	$(function() {
		$("#jvForm").validate();
		
		$('table tbody tr:odd').css('background-color','#f6fbff');
    	$('table tbody tr:even').css('background-color','#ffffd5');
	});

</script>
</head>
<!---------- 充值记录页面\ROOT\WEB-INF\front\rechargeList.html ---------->
<body>
    <#include "/front/common/header.html"/>
    <!-- 中部 -->
    <div class="memeber_middle">
    	<div class="member_record_location_div">
            <span>
                <b><a href="/index.jspx">首页</a></b>&nbsp;>
                <b>资金管理</b>&nbsp;>
                <b>充值记录</b>
            </span>
        </div>
        <div class="memeber_record_centre">
        	<!-- 左边目录 -->
            <div class="memeber_left_nav_div">
            	<#include "/front/member/会员中心页_导航.html"/>
            </div>
        	<!-- 右边目录明细 -->
            <div class="recharge_record_right_detail_div">
                <div class="rechrageRecord_div">
                	<div class="rechrageRecord_title_header"><b>充值记录</b></div>
                    <div class="record_list_div">
                        <form id="jvForm" action="v_trechargeList.do" method="post">
                        	<input type="hidden" name="pageNo" value=""/>
                            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                                <thead>
                                	<tr>     	 
                                        <td width="150" height="35" align="center">订单号</th>
                                        <td width="150" align="center">充值金额</th>
                                        <td width="150" align="center">交易时间</th>
                                        <td width="150" align="center">状态</th>	  
                                    </tr>
                                </thead>
                                <tbody>
                                    <#list pagination.list as c>
                                        <tr>
                                            <td height="35">${c.orderid!?html}</td>
                                            <td align="center">${c.amount!?html}</td>
                                            <td align="center">
                                                <#if (c.transdate)?? >
                                                	${c.transdate?string('yyyy-MM-dd HH:mm:ss')}
                                                </#if>
                                            </td>
                                            <td align="center">
                                                <#list statusMap?keys as idKey>
                                                    <#if idKey==c.status!?string> 
                                                    	${statusMap[idKey]}
                                                    </#if>
                                                </#list>
                                            </td>
                                        </tr>
                                	</#list>
                                </tbody>
                            </table>
                        	<!-- 分页div -->
                            <div style="width:900px; text-align:center; margin-top:20px;">
                            共 ${pagination.totalCount} 条&nbsp;
                            每页 ${pagination.pageSize} 条&nbsp;
                            <!-- <input type="text" value="20" style="width:30px" onfocus="this.select();" onblur="$.cookie('_cookie_page_size',this.value,{expires:3650});" onkeypress="if(event.keyCode==13){$(this).blur();return false;}"/>-->
                            
                            <input type="button" class="first-page"value="首 页" onclick="_gotoPage('1');"<#if pagination.firstPage> disabled="disabled"</#if>/>
                            <input type="button" class="pre-page" value="上一页" onclick="_gotoPage('${pagination.prePage}');"<#if pagination.firstPage> disabled="disabled"</#if>/>
                            <input type="button" class="next-page" value="下一页" onclick="_gotoPage('${pagination.nextPage}');"<#if pagination.lastPage> disabled="disabled"</#if>/>
                            <input type="button" class="last-page" value="尾 页" onclick="_gotoPage('${pagination.totalPage}');"<#if pagination.lastPage> disabled="disabled"</#if>/>&nbsp;
                            当前 ${pagination.pageNo}/${pagination.totalPage} 页 &nbsp;转到第<input type="text" id="_goPs" style="width:50px" onfocus="this.select();" onkeypress="if(event.keyCode==13){$('#_goPage').click();return false;}"/>页
                            <input id="_goPage" class="go"  type="button" value="转" onclick="_gotoPage($('#_goPs').val());"<#if pagination.totalPage==1> disabled="disabled"</#if>/>
                            </div>
                        </form>
						<script type="text/javascript"> 
							function _gotoPage(pageNo) {
								try{
									var tableForm = getTableForm();
									$("input[name=pageNo]").val(pageNo);
									tableForm.action="v_trechargeList.jspx";
									tableForm.onsubmit=null;
									tableForm.submit();
								} catch(e) {
									alert('_gotoPage(pageNo)方法出错');
								}
							}
                        </script> 
                    </div>
                </div>
            </div>
        	<div style="clear:both;"></div>
        </div>
    </div>
    <!-- 底部 -->
    <#include "/front/common/footer.html"/>
</body>
</html>